package com.rockywong.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by rockywong on 2018/7/31.
 */
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@RestController
public class Application {

    @RequestMapping("/show")
    public String home() {
        return "Hello, I'm Consul Client!";
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
